package edu.hm.activebadge.rfid.acquisition.badge;


import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class BadgeParameter {
	
	private static Properties properties;

	public BadgeParameter(){
		properties = new Properties();
		BufferedInputStream stream;
		try {
			stream = new BufferedInputStream(new FileInputStream("badge.properties"));
			properties.load(stream);
			stream.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();

		} catch (IOException e) {
			e.printStackTrace();
		}

	}
	
	public static String getSerialPort(){
		return properties.getProperty("serialport");
	}
	
	public static String getClientPort(){
		return properties.getProperty("clientport");
	}
	
	public static String getServer(){
		return properties.getProperty("server");
	}
	
	public static String getServerPort(){
		return properties.getProperty("serverport");
	}
	
	public static String getHistoryFile(){
		return properties.getProperty("history");
	}
}
